<template>
  <div class="cms-notfound">
    <div class="text-center">
      <img width="350" src="@/assets/imgs/404.svg" alt="" />
      <div class="text-desc">抱歉，您访问的页面不存在。</div>
      <div class="control-panel">
        <el-button type="primary" @click="btnClick">返回首页</el-button>
      </div>
    </div>
  </div>
</template>

<script>
import { defineComponent } from 'vue'
export default defineComponent({
  name: 'NotFound',
  setup() {
    const btnClick = () => {
      console.log('callbakc')
    }
    return {
      btnClick
    }
  }
})
</script>

<style lang="scss" scoped>
.cms-notfound {
  padding: auto;
  justify-content: center;
  display: flex;

  .text-center {
    text-align: center;
  }
  .text-desc {
    color: var(--el-color-info);
    font-size: 14px;
    line-height: 1;
  }
  .control-panel {
    margin-top: 20px;
  }
}
</style>
